package com.zaydanwu.cla.service.Impl;

import com.zaydanwu.cla.dao.EmptyClassroomMapper;
import com.zaydanwu.cla.model.EmptyClassroom;
import com.zaydanwu.cla.service.EmptyClassroomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wzo
 * @since 2.0.0 2018-12-13
 */
@Service
public class EmptyClassroomServiceImpl implements EmptyClassroomService {

    @Resource
    private EmptyClassroomMapper emptyClassroomMapper;

    @Override
    public List<EmptyClassroom> getAllEmptyClassroom() {

        return emptyClassroomMapper.getAllEmptyClassroom();
    }

    @Override
    public List<EmptyClassroom> getEmptyClassroomByVillage(String village) {
        return emptyClassroomMapper.getEmptyClassroomByVillage(village);
    }
}
